/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.dinner.entity.balance;

import com.thinkgem.jeesite.modules.sys.entity.User;
import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 余额管理Entity
 * @author dai
 * @version 2018-11-18
 */
public class ResAccountBalance extends DataEntity<ResAccountBalance> {
	
	private static final long serialVersionUID = 1L;
	private User user;		// 用户
	private Double balance;		// 户账余额
	
	public ResAccountBalance() {
		super();
	}

	public ResAccountBalance(String id){
		super(id);
	}

	@NotNull(message="用户不能为空")
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@NotNull(message="户账余额不能为空")
	public Double getBalance() {
		return balance;
	}

	public void setBalance(Double balance) {
		this.balance = balance;
	}
	
}